fetcher queue: also throttle on outstanding writes
authorJonathan Lebon <jlebon@redhat.com>
Thu, 9 Feb 2017 03:06:05 +0000 (22:06 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 9 Feb 2017 16:54:20 +0000 (16:54 +0000)
commit40a1d32067aeed836858da87c1f03ea1dbb3515e
tree4ad573c93f345e174c077ae2274b85b96def87c8
parent361aa449fbb43f8c9ab91e9d56c2d73e01c732e0
fetcher queue: also throttle on outstanding writes

When fetching over a fast enough connection, we can be receiving files
faster than we write them. This can then lead to EMFILE when we have
enough files open. This was made very easy to notice with the upcoming
libcurl backend, which makes use of pipelining.

Closes: #675
Approved by: cgwalters
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo-pull.c